home *** CD-ROM | disk | FTP | other *** search
- function rePress()
- {
- gee.onRelease = function()
- {
- bridgeDoor.gotoAndPlay(14);
- this._visible = false;
- Mouse.show();
- delete gee.onPress;
- };
- }
- stop();
- mixer._visible = false;
- geeMix._visible = false;
- geePowder._visible = false;
- crumbCup._visible = false;
- iceBridge._visible = false;
- stove.tunner.enabled = false;
- crumbCup01._visible = false;
- rr._visible = false;
- var depths = 10;
- var i = 2;
- while(i <= 17)
- {
- eval("ins" + i)._visible = false;
- i++;
- }
- gee.onPress = function()
- {
- ins1._visible = false;
- if(bridgeDoor._currentframe == 13)
- {
- rePress();
- }
- this.swapDepths(depths);
- this.startDrag();
- Mouse.hide();
- updateAfterEvent();
- this.onMouseMove = function()
- {
- if(bridgeDoor.doorClose.hitTest(this))
- {
- bridgeDoor.gotoAndPlay(2);
- Mouse.show();
- }
- };
- };
- _global.Crumb = function()
- {
- crumb.onPress = function()
- {
- ins2._visible = false;
- this.swapDepths(depths);
- Mouse.hide();
- this.startDrag();
- };
- crumb.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- Mouse.show();
- stopDrag();
- this.gotoAndPlay(2);
- this._x = -151;
- this._y = 8;
- depths++;
- }
- };
- };
- _global.Vennila = function()
- {
- vennila.onPress = function()
- {
- ins3._visible = false;
- this.swapDepths(depths);
- this.startDrag();
- Mouse.hide();
- };
- vennila.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- this.gotoAndPlay(2);
- Mouse.show();
- stopDrag();
- this._x = -181;
- this._y = 40;
- depths++;
- }
- };
- };
- _global.Egg = function()
- {
- egg.onPress = function()
- {
- ins4._visible = false;
- this.swapDepths(depths);
- this.startDrag();
- Mouse.hide();
- };
- egg.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- stopDrag();
- Mouse.show();
- egg.gotoAndPlay(2);
- this._x = 260;
- this._y = 25;
- depths++;
- }
- };
- };
- _global.Mixer = function()
- {
- mixer.onPress = function()
- {
- ins5._visible = false;
- mixer.nextFrame();
- crumb.nextFrame();
- vennila.nextFrame();
- egg._visible = false;
- crumb._visible = false;
- if(mixer._currentframe == mixer._totalframes)
- {
- this.enabled = false;
- OpenDoor();
- }
- };
- };
- OpenDoor = function()
- {
- bridgeDoor.onPress = function()
- {
- ins6._visible = false;
- bridgeDoor.nextFrame();
- };
- };
- var dpths = 100;
- _global.IceCream = function()
- {
- bridgeDoor.iceCream.onPress = function()
- {
- gee.swapDepths(depths);
- gee._visible = true;
- gee.startDrag();
- this._visible = false;
- gee._x = -85;
- gee._y = -123;
- };
- gee.onRelease = function()
- {
- if(hitAra.hitTest(this))
- {
- ins7._visible = true;
- bridgeDoor.nextFrame();
- delete bridgeDoor.iceCream.onPress;
- delete gee.onRelease;
- stopDrag();
- depths++;
- GeeGee();
- }
- };
- };
- GeeGee = function()
- {
- gee.enabled = true;
- gee.geeIn.enabled = true;
- gee.geeIn.onPress = function()
- {
- ins7._visible = false;
- this.swapDepths(depths);
- Mouse.hide();
- this.startDrag();
- };
- gee.geeIn.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- this._visible = false;
- geeMix._visible = true;
- Mouse.show();
- depths++;
- GeeMix();
- }
- };
- };
- GeeMix = function()
- {
- geeMix.onPress = function()
- {
- ins8._visible = false;
- this.nextFrame();
- if(geeMix._currentframe == geeMix._totalframes)
- {
- GEEgeeMix();
- }
- };
- };
- GEEgeeMix = function()
- {
- geeMix.onPress = function()
- {
- ins9._visible = false;
- this.swapDepths(depths);
- Mouse.hide();
- this.startDrag();
- };
- geeMix.onRelease = function()
- {
- if(crumbPowder.hitTest(this))
- {
- stopDrag();
- this._visible = false;
- geePowder._visible = true;
- Mouse.show();
- delete geeMix.onPress;
- delete geeMix.onRelease;
- depths++;
- GeePowder();
- }
- };
- };
- GeePowder = function()
- {
- geePowder.onPress = function()
- {
- this.nextFrame();
- if(geePowder._currentframe == geePowder._totalframes)
- {
- GeePowderMix();
- }
- };
- };
- GeePowderMix = function()
- {
- geePowder.onPress = function()
- {
- ins8._visible = false;
- this.swapDepths(depths);
- Mouse.hide();
- this.startDrag();
- };
- geePowder.onRelease = function()
- {
- if(hitAraa.hitTest(this))
- {
- ins10._visible = true;
- stopDrag();
- Mouse.show();
- this._visible = false;
- crumbCup._visible = true;
- gee._visible = false;
- iceBridge._visible = true;
- bridgeDoor._visible = false;
- delete geePowder.onPress;
- delete geePowder.onRelease;
- depths++;
- CrumbCup();
- }
- };
- };
- CrumbCup = function()
- {
- function rePress01()
- {
- crumbCup.onRelease = function()
- {
- iceBridge.gotoAndPlay(14);
- this._visible = false;
- Mouse.show();
- delete crumbCup.onPress;
- delete crumbCup.onRelease;
- crumb._visible = false;
- crumbCup._visible = false;
- crumbPowder._visible = false;
- bowl._visible = false;
- eggCup._visible = false;
- vennila._visible = false;
- mixer._visible = false;
- };
- }
- crumbCup.onPress = function()
- {
- ins10._visible = false;
- if(iceBridge._currentframe == 13)
- {
- rePress01();
- }
- this.swapDepths(depths);
- this.startDrag();
- Mouse.hide();
- updateAfterEvent();
- this.onMouseMove = function()
- {
- if(iceBridge.doorClose.hitTest(this))
- {
- iceBridge.gotoAndPlay(2);
- Mouse.show();
- }
- };
- };
- };
- _global.Stove = function()
- {
- stove.onPress = function()
- {
- ins11._visible = false;
- this.swapDepths(depths);
- Mouse.hide();
- this.startDrag();
- };
- stove.onRelease = function()
- {
- if(hitstove.hitTest(this))
- {
- ins12._visible = true;
- stopDrag();
- Mouse.show();
- this._x = 23;
- this._y = 77;
- delete stove.onPress;
- delete stove.onRelease;
- depths++;
- Oil();
- }
- };
- };
- Oil = function()
- {
- oil.onPress = function()
- {
- ins12._visible = false;
- this.swapDepths(depths);
- this.startDrag();
- };
- oil.onRelease = function()
- {
- if(stove.hitTest(this))
- {
- this.gotoAndPlay(2);
- stopDrag();
- this._x = 200;
- this._y = 75;
- depths++;
- }
- };
- };
- _global.OpenDoorIce = function()
- {
- iceBridge.onPress = function()
- {
- ins14._visible = false;
- iceBridge.nextFrame();
- onEnterFrame = function()
- {
- if(iceBridge._currentframe == 35)
- {
- delete onEnterFrame;
- iceBridge.enabled = false;
- crumbCup01._visible = true;
- IceCream00();
- }
- };
- };
- };
- IceCream00 = function()
- {
- crumbCup01.onPress = function()
- {
- this.swapDepths(depths);
- Mouse.hide();
- this.startDrag();
- iceBridge.nextFrame();
- };
- crumbCup01.onRelease = function()
- {
- if(hitAra.hitTest(this))
- {
- ins15._visible = true;
- stopDrag();
- Mouse.show();
- delete crumbCup01.onRelease;
- delete crumbCup01.onPress;
- depths++;
- Fried();
- }
- };
- };
- Fried = function()
- {
- crumbCup01.biscut.onPress = function()
- {
- ins15._visible = false;
- this.swapDepths(depths);
- this.startDrag();
- };
- crumbCup01.biscut.onRelease = function()
- {
- if(hitstove.hitTest(this))
- {
- ins16._visible = true;
- stopDrag();
- this._visible = false;
- rr._visible = true;
- rr.swapDepths(depths);
- depths++;
- Spoon();
- }
- };
- };
- Spoon = function()
- {
- delete crumbCup01.biscut.onRelease;
- delete crumbCup01.biscut.onPress;
- spoon.onPress = function()
- {
- ins16._visible = false;
- this.swapDepths(depths);
- this.startDrag();
- };
- spoon.onRelease = function()
- {
- if(stove.hitTest(this))
- {
- rr._visible = false;
- stopDrag();
- this._x = 45.7;
- this._y = 3;
- spoon.nextFrame();
- depths++;
- }
- };
- };
-